import React,{forwardRef} from 'react';
import {Form, Input} from "antd";

const AddTabWhole = forwardRef((props,ref) =>{
        return (
            <div>
                <Form
                    ref={ref}
                    layout="vertical"
                >
                    <Form.Item
                        name="lineNumber"
                        label="行号"
                        rules={[
                            {
                                required: true,
                                message: 'Please input the title of collection!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>
                    <Form.Item
                        name="chengse"
                        label="成色"
                        rules={[
                            {
                                required: true,
                                message: 'Please input the title of collection!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>
                    <Form.Item
                        name="style"
                        label="款式"
                        rules={[
                            {
                                required: true,
                                message: 'Please input the title of collection!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>
                    <Form.Item
                        name="basicLaboCost"
                        label="基本工费"
                        rules={[
                            {
                                required: true,
                                message: 'Please input the title of collection!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>
                    <Form.Item
                        name="otherLaboCost"
                        label="其他工费"
                        rules={[
                            {
                                required: true,
                                message: 'Please input the title of collection!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>
                    <Form.Item
                        name="loss"
                        label="损耗"
                        rules={[
                            {
                                required: true,
                                message: '保留小数点后两位!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>
                    <Form.Item
                        name="microLoss"
                        label="微镶损耗"
                        rules={[
                            {
                                required: true,
                                message: '保留小数点后两位!',
                            },
                        ]}
                    >
                        <Input />
                    </Form.Item>

                </Form>
            </div>
        );
    }
)

export default AddTabWhole;